import upload from "@/utils/upload";
import request from "@/utils/request";

// 认证角色信息
export function examineRole(data) {
	return request({
		url: "/pw/role_audits/addRole",
		headers: {
			isToken: true
		},
		method: "post",
		data: data
	});
}
//获取角色审核详情
export function getUserRole(userId) {
	return request({
		url: "/pw/role_audits/"+userId,
		headers: {
			isToken: true
		},
		method: "post",
		
		
	});
}
//客服和打手提交邀请码和手机号给后端
export function inviteCode(data) {
	return request({
		url: "/pw/codes/change_role",
		headers: {
			isToken: true
		},
		method: "post",
		data: data
	});
}
//打手获取统计数据 get请求
export function getRoleStatistics(params) {
	return request({
		url: "/pw/transaction_record/statistics",
		headers: {
			isToken: true
		},
		method: "get",
		params
	});
}
